#pragma once
#include "CElement.h"

/*********************************************************************************************************
Class name: CBulb
Data member: int max_current: the biggest allowed current

Member function: 
int ChangeSpeed(int role_x, int role_y,int& speed): return different number according to the speed,the use the return value to show other elements in Showstage()

Inherit class: CElement
Derived class: void
***************************************************************************************************************/
class CBulb : public CElement
{
public:
	CBulb(int X, int Y, bool PutStyle, int maxCurrent);
	virtual ~CBulb();

	int ChangeSpeed(int role_x, int role_y,int& speed);

private:
	int max_current = 100;
};

